package com.example.sofa_model.adapter;

import com.example.baseadapter_sdk.BaseQuickAdapter;
import com.example.baseadapter_sdk.BaseViewHolder;
import com.example.sofa_model.R;
import com.example.sofa_model.entity.DataDTO;


public class ImageAdapter extends BaseQuickAdapter<DataDTO> {


    public ImageAdapter( ) {
        super(R.layout.item_sofa_type_image);
    }

    @Override
    public void convert(BaseViewHolder holder, DataDTO item) {

        holder.setText(R.id.username_top, item.author.name);
        holder.setText(R.id.user_title, item.feeds_text);
        holder.setImage(R.id.feed_image,item.cover);
        holder.setText(R.id.button_liek, ""+item.ugc.likeCount);
        holder.setText(R.id.button_diss, "踩");
        holder.setText(R.id.button_comment, ""+item.ugc.commentCount);
        holder.setText(R.id.button_share, ""+item.ugc.shareCount);
        holder.setText(R.id.feed_tag, item.activityText);
    }
}
